package com.fighYo.edu.service.impl;

import com.fighYo.edu.entity.EduTeacher;
import com.fighYo.edu.mapper.EduTeacherMapper;
import com.fighYo.edu.service.EduTeacherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 * 讲师 服务实现类
 * </p>
 *
 * @author fighYo
 * @since 2021-08-19
 */
@Service
public class EduTeacherServiceImpl extends ServiceImpl<EduTeacherMapper, EduTeacher> implements EduTeacherService {
    @Override
    public boolean removeById(Serializable id) {
        Integer result = baseMapper.deleteById(id);
        System.out.println("aaaaa" + result + "aaa" + id);
        return result != null && result > 0;
    }
}
